package com.ruoyi.mall.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分商城订单明细业务对象 mall_order_detail
 *
 * @author ruoyi
 * @date 2025-02-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MallOrderDetailBo extends BaseEntity {

    /**
     * 积分商城订单明细表主键
     */
    @NotNull(message = "积分商城订单明细表主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 积分商城订单明细ID
     */
    @NotBlank(message = "积分商城订单明细ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scoreMallOrderDetailId;

    /**
     * 积分商城订单ID
     */
    @NotBlank(message = "积分商城订单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scoreMallOrderId;

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsId;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goodsName;

    /**
     * 支付规则 (0：积分 1：现金 2：积分+现金）
     */
    @NotNull(message = "支付规则 (0：积分 1：现金 2：积分+现金）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsPayRule;

    /**
     * 商品积分数
     */
    @NotNull(message = "商品积分数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsScore;

    /**
     * 商品现金（单位:分）
     */
    @NotNull(message = "商品现金（单位:分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsMoney;

    /**
     * 商品数量
     */
    @NotNull(message = "商品数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsAmount;

    /**
     * 关联商品规格类型ID
     */
    @NotNull(message = "关联商品规格类型ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsSpecificationsId;

    /**
     * 商品规格类别名称
     */
    @NotBlank(message = "商品规格类别名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String specificationsName;

    /**
     * 商品类别规格明细ID
     */
    @NotNull(message = "商品类别规格明细ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsSpecificationsDetailId;

    /**
     * 商品类别规格明细名称
     */
    @NotBlank(message = "商品类别规格明细名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String specificationsDetailName;

    /**
     * 删除标志(0：未删除 1：已删除)
     */
    @NotNull(message = "删除标志(0：未删除 1：已删除)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long yn;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
